package org.exhaust.barbecue.annotation;

import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(ManagerScannerRegistrar.class)
/**
 * 参考MapperScan
 */
public @interface ManagerScan {

    @AliasFor("basePackages")
    String[] value() default {};

    @AliasFor("value")
    String[] basePackages() default {};

    Class<? extends BeanNameGenerator> nameGenerator() default BeanNameGenerator.class;

}
